<template>
  <div id="CheckButton" class="check-button" :class="{check: isChenked}">
    <img src="~assets/img/cart/tick.svg">
  </div>
</template>

<script>
export default {
  name: "CheckButton",
  props: {
    isChenked: {
      type: Boolean, //是否选中
      default: false
    }
  }
}
</script>

<style scoped>
.check-button { 
  border-radius: 50%;
  border: 2px solid #aaa;
}
.check {
  border-color: red;
  background-color: red;
}
</style>
